package com.example.lvsuo.mapper;

import com.example.lvsuo.entity.CaseLaw;
import com.example.lvsuo.entity.CwPerformancesplit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.lvsuo.entity.vo.CwPerformancesplitVo;
import org.apache.ibatis.annotations.Select;
import com.example.lvsuo.entity.vo.xzhvo.PerformancesplitVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
public interface CwPerformancesplitMapper extends BaseMapper<CwPerformancesplit> {

    void addcwPerformancesplit(List<CwPerformancesplit> l);

    @Select("select cw.*,h.emp_name from cw_performancesplit cw inner join hr_emp h where cw.hr_emp_id=h.id and cw.case_law_id=#{value}")
    List<CwPerformancesplitVo> queryCw(String id);

    List<PerformancesplitVo> getidcwPerformancesplit(PerformancesplitVo performancesplitVo);

    List<CwPerformancesplit> getCwPerformancesplitNADempidandlawid(CwPerformancesplit cwPerformancesplit);
}
